package com.dyna.patterns.creation.factory.simplefactory;

public class MainDemo {

    public static void main(String[] args) {

        SimpleFactory factory = new SimpleFactory();

        AbstractCar van = factory.newCar("Van");
        AbstractCar mini = factory.newCar("mini");

        van.run();
        mini.run();

    }

}
